<?php
namespace Admin\Controller;
use Admin\Controller\BaseController;

class AppTypeController extends BaseController {
    private $model;
    public function _initialize(){
      $this->tbl='apptype';
      $this->model=D($this->tbl);
       parent::_initialize();

    }
    public function index(){
      parent::showlist($this->tbl,'zhr_tid desc');
    }

    public function view(){
       $id=I('get.id');
    }

     public function form(){
      //$this->assign('list',M('apptype')->select());
      parent::form($this->tbl);
    }
        
    public function add(){
       parent::add($this->tbl,'admin.php/apptype/index');
    }

    public function delete(){
      parent::delete($this->tbl,'admin.php/apptype/index');
    }

    public function mod(){
      //$this->assign('list',M('apptype')->select());
      parent::mod($this->tbl);
    }   

     public function update(){
      parent::update($this->tbl,'admin.php/apptype/index');}
}
